package org.KeyCrafter.util;

import io.netty.handler.codec.redis.*;

public interface SharedReply {
    RedisMessagePool messagePool = FixedRedisMessagePool.INSTANCE;
    RedisMessage ok = messagePool.getSimpleString("OK");
    RedisMessage err = messagePool.getError("ERR");
    RedisMessage syntaxErr = messagePool.getError("ERR syntax error");
    RedisMessage nullBulk = FullBulkStringRedisMessage.NULL_INSTANCE;
    RedisMessage emptyMultiBulk = ArrayRedisMessage.EMPTY_INSTANCE;

    RedisMessage wrongTypeErr = messagePool.getError("WRONGTYPE Operation against a key holding the wrong kind of value");
    RedisMessage cZero = messagePool.getInteger(0);
    RedisMessage cOne = messagePool.getInteger(1);
}
